import { HttpRequestConfig } from './HttpRequestConfig';
import { AxiosResponse } from "@ohos/axios";

/**
 * @ProjectName : MyApplication
 * @FileName : BaseResponse
 * @Author : 小北哥
 * @Time : 2024/8/1
 */
export interface InterceptorHooks {
  requestInterceptor?: (config: HttpRequestConfig) => Promise<HttpRequestConfig>;
  requestInterceptorCatch?: (error: any) => any;
  responseInterceptor?: (response: AxiosResponse) => AxiosResponse | Promise<AxiosResponse>;
  responseInterceptorCatch?: (error: any) => any;
}